//
//  NSString+CAIUpgrade.m
//  MerchantBusinessClient
//
//  Created by Ez on 2021/4/28.
//  Copyright © 2021 com.Chs. All rights reserved.
//

#import "NSString+CAIUpgrade.h"

@implementation NSString (CAIUpgrade)

+ (BOOL)caiUpgradeIsEmpty:(NSString *)string
{
    if (string == nil || string == NULL) {
        return YES;
    }
    if ([string isKindOfClass:[NSNull class]]) {
        return YES;
    }
    if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length] == 0) {
        return YES;
    }
    return NO;
}

@end
